package com.ghost.alibabaghost.api.service.sys;

import com.ghost.alibabaghost.api.model.sys.SysRoleModel;

import java.util.List;

/**
 * @author yaolisheng
 * @version 1.0
 * @date 2022/1/14 23:12
 */
public interface SysRoleService {

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SysRoleModel selectById(Integer id);

    /**
     * 查询全部
     *
     * @return
     */
    List<SysRoleModel> queryAll();

    /**
     * 根据主键删除
     *
     * @param id
     * @return
     */
    Integer deleteRoleById(Integer id);

    Integer saveRole(SysRoleModel sysRoleModel);

    Integer updateRole(SysRoleModel sysRoleModel);

    SysRoleModel selectRoleById(Integer id);
}
